import QtQuick
import QtQuick.Controls

Window {
    width: 640
    height: 480
    visible: true
    title: qsTr("颜色选择器")

    Tumbler {
        anchors.centerIn: parent
        model: ["Red", "Green", "Blue", "Yellow", "Cyan", "Magenta"]

        delegate: Rectangle {
            width: Tumbler.tumbler.width
            height: 30
            color: modelData
            border.color: "white"
            border.width: 1

            Text {
                text: modelData
                anchors.centerIn: parent
                color: "white"
                font.bold: true
            }
        }
    }
}
